home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form BrowseNDX
- Caption = "Demo GetKEY"
- ClientHeight = 2865
- ClientLeft = 2355
- ClientTop = 2400
- ClientWidth = 4875
- Height = 3270
- Left = 2295
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- ScaleHeight = 2865
- ScaleWidth = 4875
- Top = 2055
- Width = 4995
- Begin TextBox DispTime
- Height = 492
- Left = 3240
- TabIndex = 12
- Text = "Text5"
- Top = 2280
- Width = 732
- End
- Begin CommandButton Command1
- Caption = "E&xit"
- Height = 492
- Left = 480
- TabIndex = 2
- Top = 2280
- Width = 1092
- End
- Begin TextBox Text4
- BackColor = &H00C0C0C0&
- Enabled = 0 'False
- Height = 732
- Left = 0
- TabIndex = 10
- Top = 2160
- Width = 5292
- End
- Begin TextBox Text3
- Height = 372
- Left = 120
- TabIndex = 5
- Top = 1680
- Width = 4692
- End
- Begin TextBox Text1
- Height = 372
- Left = 1800
- TabIndex = 1
- Top = 720
- Width = 852
- End
- Begin TextBox Text2
- Height = 372
- Left = 120
- TabIndex = 0
- Top = 360
- Width = 2532
- End
- Begin Frame Frame1
- Caption = "&Key Control"
- Height = 1008
- Left = 2832
- TabIndex = 7
- Top = 120
- Width = 1872
- Begin CheckBox Check2
- Caption = "&Proximate"
- Height = 372
- Left = 240
- TabIndex = 9
- Top = 600
- Width = 1092
- End
- Begin CheckBox Check1
- Caption = "&Exact"
- Height = 372
- Left = 240
- TabIndex = 8
- Top = 240
- Width = 1092
- End
- End
- Begin Label Label4
- Alignment = 1 'Right Justify
- BackColor = &H00C0C0C0&
- Caption = "time to get key:"
- Height = 492
- Left = 2040
- TabIndex = 11
- Top = 2280
- Width = 1092
- End
- Begin Label Label3
- Caption = "Key found"
- Height = 204
- Left = 120
- TabIndex = 6
- Top = 1440
- Width = 2040
- End
- Begin Label Label2
- Alignment = 1 'Right Justify
- Caption = "Index record no. "
- Height = 264
- Left = 240
- TabIndex = 4
- Top = 840
- Width = 1500
- End
- Begin Label Label1
- Caption = "Enter key data to find"
- Height = 204
- Left = 108
- TabIndex = 3
- Top = 108
- Width = 2052
- End
- DefInt A-Z
- Dim Index As Integer
- Sub Command1_Click ()
- Unload BrowseNDX
- End Sub
- Sub Form_Click ()
- End
- End Sub
- Sub Text2_KeyPress (KeyAscii As Integer)
- If KeyAscii = 13 Then
-
- Key$ = Text2.Text
- Mode = 0 'best match
-
- InTime# = Timer
-
- GetKEY NDXHandle, Status, Key$, Record&, Mode
- OuTime# = Timer
- DispTime.Text = Str$(OuTime# - InTime#)
- Text1.Text = Str$(Record&)
- Text3.Text = Key$
-
- KeyAscii = 0
- End If
-
- End Sub
-